/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FramePrincipal.java
 *
 * Created on 24/07/2011, 14:17:00
 */

package gui;

import control.ControlLote;
import control.ControlPessoas;
import control.ControlProdutos;
import control.ControlVendas;
import controlImpl.ControlImpl;

/**
 *
 * @author TIGAS
 */
public class FramePrincipal extends javax.swing.JFrame {

	ControlImpl controlImpl = null;
	ControlPessoas controlPessoa = null;
	ControlProdutos controlProdutos = null;
	ControlLote controlLoteImpl = null;
	ControlVendas controlVendasImpl = null;

	/** Creates new form FramePrincipal */
	public FramePrincipal(ControlImpl controlImpl) {
		this.controlImpl = controlImpl;
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgCadFunc = new javax.swing.ButtonGroup();
        PanelPrincipal = new javax.swing.JPanel();
        jDesktopPane = new javax.swing.JDesktopPane();
        panelCadVenda = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        textFieldQntDispCadVendas = new javax.swing.JTextField();
        buttomCadTipoProd4 = new javax.swing.JButton();
        buttomCanTipoProduto2 = new javax.swing.JButton();
        jComboBoxProdCadVendas = new javax.swing.JComboBox();
        buttomCadTipoProd5 = new javax.swing.JButton();
        buttomCadTipoProd6 = new javax.swing.JButton();
        textfQntSolicCadVendas = new javax.swing.JTextField();
        jComboBoxCategCadVendas = new javax.swing.JComboBox();
        jLabel29 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tableProdutosCadVendas = new javax.swing.JTable();
        jLabel13 = new javax.swing.JLabel();
        comboBoxVendedorCadVendas = new javax.swing.JComboBox();
        comboBoxCompradorCadVendas = new javax.swing.JComboBox();
        textfDataVendaCadVend = new javax.swing.JTextField();
        textfQntParcelasCadVendas = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        panelCadLote = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        tfQntCadLote = new javax.swing.JTextField();
        buttomCadTipoProd1 = new javax.swing.JButton();
        buttomCanTipoProduto1 = new javax.swing.JButton();
        jComboBoxProdCadLote = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        tfNumLoteCadLote = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListProdutos = new javax.swing.JList();
        buttomCadTipoProd2 = new javax.swing.JButton();
        buttomCadTipoProd3 = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        tfDataFabrCadLote = new javax.swing.JFormattedTextField();
        jComboBoxCategCadLote = new javax.swing.JComboBox();
        jLabel10 = new javax.swing.JLabel();
        tfValorCadLote = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        panelCadPessoa = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        tfNumeroCadFunc1 = new javax.swing.JTextField();
        tfNomeCadFunc1 = new javax.swing.JTextField();
        tfRuaCadFunc1 = new javax.swing.JTextField();
        tfComplementoCadFunc1 = new javax.swing.JTextField();
        tfBairroCadFunc1 = new javax.swing.JTextField();
        tfCidadeCadFunc1 = new javax.swing.JTextField();
        tfEstadoCadFunc1 = new javax.swing.JTextField();
        tfTelefoneCadFunc1 = new javax.swing.JTextField();
        tfCelularCadFunc1 = new javax.swing.JTextField();
        tfCPFCadFunc1 = new javax.swing.JTextField();
        tfRGCadFunc1 = new javax.swing.JTextField();
        jButtonCadastrarCadFunc = new javax.swing.JButton();
        jLabel26 = new javax.swing.JLabel();
        tfNascimento1 = new javax.swing.JTextField();
        jButtonCancelCadFunc = new javax.swing.JButton();
        jComboBoxCategoriaCadPessoa = new javax.swing.JComboBox();
        jLabel27 = new javax.swing.JLabel();
        panelCadTipoProduto = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        tfNomeCadTipoProd = new javax.swing.JTextField();
        tfTipoCadTipoProduto = new javax.swing.JTextField();
        buttomCadTipoProd = new javax.swing.JButton();
        buttomCanTipoProd = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jDesktopPane.setBackground(new java.awt.Color(240, 240, 240));
        jDesktopPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jDesktopPane.setForeground(new java.awt.Color(240, 240, 240));

        panelCadVenda.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel7.setFont(new java.awt.Font("Tahoma", 3, 20));
        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel7.setText("Cadastrar Venda");

        jLabel11.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel11.setText("Categoria");

        jLabel12.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel12.setText("Qnt Disponivel");

        buttomCadTipoProd4.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd4.setText("Cadastrar");
        buttomCadTipoProd4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProd4ActionPerformed(evt);
            }
        });

        buttomCanTipoProduto2.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCanTipoProduto2.setText("Cancelar");
        buttomCanTipoProduto2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCanTipoProduto2ActionPerformed(evt);
            }
        });

        jComboBoxProdCadVendas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxProdCadVendas.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxProdCadVendasItemStateChanged(evt);
            }
        });

        buttomCadTipoProd5.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd5.setText("Adicionar >>");
        buttomCadTipoProd5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProd5ActionPerformed(evt);
            }
        });

        buttomCadTipoProd6.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd6.setText("Excluir");
        buttomCadTipoProd6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProd6ActionPerformed(evt);
            }
        });

        jComboBoxCategCadVendas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxCategCadVendas.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxCategCadVendasItemStateChanged(evt);
            }
        });

        jLabel29.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel29.setText("Produto");

        tableProdutosCadVendas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Id", "Produto", "Qnt", "Lote", "Valor"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Long.class, java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Double.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tableProdutosCadVendas.setColumnSelectionAllowed(true);
        tableProdutosCadVendas.getTableHeader().setReorderingAllowed(false);
        jScrollPane2.setViewportView(tableProdutosCadVendas);
        tableProdutosCadVendas.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tableProdutosCadVendas.getColumnModel().getColumn(0).setResizable(false);
        tableProdutosCadVendas.getColumnModel().getColumn(1).setResizable(false);
        tableProdutosCadVendas.getColumnModel().getColumn(1).setPreferredWidth(300);
        tableProdutosCadVendas.getColumnModel().getColumn(2).setResizable(false);
        tableProdutosCadVendas.getColumnModel().getColumn(3).setResizable(false);
        tableProdutosCadVendas.getColumnModel().getColumn(4).setResizable(false);

        jLabel13.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel13.setText("Qnt Solicitada");

        comboBoxVendedorCadVendas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboBoxVendedorCadVendas.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                comboBoxVendedorCadVendasItemStateChanged(evt);
            }
        });

        comboBoxCompradorCadVendas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboBoxCompradorCadVendas.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                comboBoxCompradorCadVendasItemStateChanged(evt);
            }
        });

        jLabel30.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel30.setText("Vendedor");

        jLabel31.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel31.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel31.setText("Comprador");

        jLabel32.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel32.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel32.setText("Parcelas");

        jLabel33.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel33.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel33.setText("Data da Venda");

        javax.swing.GroupLayout panelCadVendaLayout = new javax.swing.GroupLayout(panelCadVenda);
        panelCadVenda.setLayout(panelCadVendaLayout);
        panelCadVendaLayout.setHorizontalGroup(
            panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadVendaLayout.createSequentialGroup()
                .addContainerGap(30, Short.MAX_VALUE)
                .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(buttomCanTipoProduto2)
                    .addComponent(buttomCadTipoProd5, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panelCadVendaLayout.createSequentialGroup()
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11)
                            .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(textfDataVendaCadVend, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(textfQntParcelasCadVendas, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(comboBoxCompradorCadVendas, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(comboBoxVendedorCadVendas, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(textFieldQntDispCadVendas)
                            .addComponent(textfQntSolicCadVendas)
                            .addGroup(panelCadVendaLayout.createSequentialGroup()
                                .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jComboBoxProdCadVendas, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jComboBoxCategCadVendas, javax.swing.GroupLayout.Alignment.LEADING, 0, 273, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 495, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
            .addGroup(panelCadVendaLayout.createSequentialGroup()
                .addGap(508, 508, 508)
                .addComponent(buttomCadTipoProd4)
                .addContainerGap(367, Short.MAX_VALUE))
            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 966, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadVendaLayout.createSequentialGroup()
                .addContainerGap(478, Short.MAX_VALUE)
                .addComponent(buttomCadTipoProd6, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(345, 345, 345))
        );
        panelCadVendaLayout.setVerticalGroup(
            panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadVendaLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel7)
                .addGap(55, 55, 55)
                .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(panelCadVendaLayout.createSequentialGroup()
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBoxCategCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel29)
                            .addComponent(jComboBoxProdCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFieldQntDispCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textfQntSolicCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboBoxVendedorCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel30))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboBoxCompradorCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel31))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textfQntParcelasCadVendas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel32))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textfDataVendaCadVend, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel33))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(buttomCadTipoProd5))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(buttomCadTipoProd6)
                .addGap(35, 35, 35)
                .addGroup(panelCadVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttomCanTipoProduto2)
                    .addComponent(buttomCadTipoProd4))
                .addContainerGap(65, Short.MAX_VALUE))
        );

        panelCadVenda.setBounds(0, 0, 970, 560);
        jDesktopPane.add(panelCadVenda, javax.swing.JLayeredPane.DEFAULT_LAYER);

        panelCadLote.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel4.setFont(new java.awt.Font("Tahoma", 3, 20));
        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel4.setText("Cadastrar Lote");

        jLabel5.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("Categoria");

        jLabel6.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText("Quantidade");

        buttomCadTipoProd1.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd1.setText("Cadastrar");
        buttomCadTipoProd1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProd1ActionPerformed(evt);
            }
        });

        buttomCanTipoProduto1.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCanTipoProduto1.setText("Cancelar");
        buttomCanTipoProduto1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCanTipoProduto1ActionPerformed(evt);
            }
        });

        jComboBoxProdCadLote.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel8.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel8.setText("Nº Lote");

        jListProdutos.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane1.setViewportView(jListProdutos);

        buttomCadTipoProd2.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd2.setText("Adicionar >>");
        buttomCadTipoProd2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProd2ActionPerformed(evt);
            }
        });

        buttomCadTipoProd3.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd3.setText("Excluir");
        buttomCadTipoProd3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProd3ActionPerformed(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel9.setText("Data de Fabricação");

        jComboBoxCategCadLote.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxCategCadLote.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxCategCadLoteItemStateChanged(evt);
            }
        });

        jLabel10.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel10.setText("Produto");

        jLabel28.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel28.setText("Valor");

        javax.swing.GroupLayout panelCadLoteLayout = new javax.swing.GroupLayout(panelCadLote);
        panelCadLote.setLayout(panelCadLoteLayout);
        panelCadLoteLayout.setHorizontalGroup(
            panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadLoteLayout.createSequentialGroup()
                .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 1085, Short.MAX_VALUE)
                .addGap(86, 86, 86))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadLoteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(buttomCadTipoProd2, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(buttomCanTipoProduto1)
                    .addGroup(panelCadLoteLayout.createSequentialGroup()
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(panelCadLoteLayout.createSequentialGroup()
                                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(2, 2, 2))
                            .addComponent(jLabel5)
                            .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(panelCadLoteLayout.createSequentialGroup()
                                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(4, 4, 4))
                            .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(tfDataFabrCadLote)
                            .addComponent(tfQntCadLote)
                            .addComponent(tfNumLoteCadLote)
                            .addComponent(jComboBoxCategCadLote, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jComboBoxProdCadLote, 0, 299, Short.MAX_VALUE)
                            .addGroup(panelCadLoteLayout.createSequentialGroup()
                                .addComponent(tfValorCadLote, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))))
                .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelCadLoteLayout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadLoteLayout.createSequentialGroup()
                                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 342, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(151, 151, 151))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadLoteLayout.createSequentialGroup()
                                .addComponent(buttomCadTipoProd1)
                                .addGap(438, 438, 438))))
                    .addGroup(panelCadLoteLayout.createSequentialGroup()
                        .addGap(179, 179, 179)
                        .addComponent(buttomCadTipoProd3, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(151, 151, 151))
        );
        panelCadLoteLayout.setVerticalGroup(
            panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadLoteLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel4)
                .addGap(57, 57, 57)
                .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(panelCadLoteLayout.createSequentialGroup()
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfNumLoteCadLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8))
                        .addGap(18, 18, 18)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBoxCategCadLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addGap(16, 16, 16)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBoxProdCadLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10))
                        .addGap(18, 18, 18)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfQntCadLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                        .addGap(18, 18, 18)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfDataFabrCadLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9)))
                    .addComponent(jScrollPane1))
                .addGap(18, 18, 18)
                .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelCadLoteLayout.createSequentialGroup()
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfValorCadLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel28))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(buttomCadTipoProd2)
                        .addGap(70, 70, 70)
                        .addGroup(panelCadLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(buttomCadTipoProd1)
                            .addComponent(buttomCanTipoProduto1)))
                    .addComponent(buttomCadTipoProd3))
                .addGap(147, 147, 147))
        );

        panelCadLote.setBounds(0, 0, 970, 560);
        jDesktopPane.add(panelCadLote, javax.swing.JLayeredPane.DEFAULT_LAYER);

        panelCadPessoa.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel14.setFont(new java.awt.Font("Tahoma", 3, 20));
        jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel14.setText("Cadastrar  Funcionário");

        jLabel15.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel15.setText("Nome");

        jLabel16.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel16.setText("Rua");

        jLabel17.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel17.setText("Bairro");

        jLabel18.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel18.setText("Numero");

        jLabel19.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel19.setText("Complemento");

        jLabel20.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel20.setText("Cidade");

        jLabel21.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel21.setText("Estado");

        jLabel22.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel22.setText("Telefone");

        jLabel23.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel23.setText("Celular");

        jLabel24.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel24.setText("CPF");

        jLabel25.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel25.setText("RG");

        jButtonCadastrarCadFunc.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCadastrarCadFunc.setText("Cadastrar");
        jButtonCadastrarCadFunc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCadastrarCadFuncActionPerformed(evt);
            }
        });

        jLabel26.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel26.setText("Nascimento");

        jButtonCancelCadFunc.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelCadFunc.setText("Cancelar");
        jButtonCancelCadFunc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelCadFuncActionPerformed(evt);
            }
        });

        jComboBoxCategoriaCadPessoa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Administrador", "Cliente", "Vendedor", "Fornecedor" }));

        jLabel27.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel27.setText("Categoria");

        javax.swing.GroupLayout panelCadPessoaLayout = new javax.swing.GroupLayout(panelCadPessoa);
        panelCadPessoa.setLayout(panelCadPessoaLayout);
        panelCadPessoaLayout.setHorizontalGroup(
            panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadPessoaLayout.createSequentialGroup()
                .addGap(176, 176, 176)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelCadPessoaLayout.createSequentialGroup()
                        .addGap(59, 59, 59)
                        .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelCadPessoaLayout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(tfRuaCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(panelCadPessoaLayout.createSequentialGroup()
                                .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(tfNomeCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelCadPessoaLayout.createSequentialGroup()
                        .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(panelCadPessoaLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(jLabel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addComponent(jLabel26, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tfNascimento1, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)
                            .addComponent(tfRGCadFunc1, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)
                            .addComponent(tfCPFCadFunc1, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadPessoaLayout.createSequentialGroup()
                                .addComponent(tfNumeroCadFunc1, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(tfBairroCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(tfComplementoCadFunc1, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadPessoaLayout.createSequentialGroup()
                                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(tfTelefoneCadFunc1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                                    .addComponent(tfCidadeCadFunc1, javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(tfEstadoCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(tfCelularCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jComboBoxCategoriaCadPessoa, 0, 369, Short.MAX_VALUE))))
                .addGap(301, 301, 301))
            .addGroup(panelCadPessoaLayout.createSequentialGroup()
                .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, 946, Short.MAX_VALUE)
                .addGap(20, 20, 20))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadPessoaLayout.createSequentialGroup()
                .addContainerGap(353, Short.MAX_VALUE)
                .addComponent(jButtonCancelCadFunc)
                .addGap(61, 61, 61)
                .addComponent(jButtonCadastrarCadFunc)
                .addGap(378, 378, 378))
        );
        panelCadPessoaLayout.setVerticalGroup(
            panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadPessoaLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel14)
                .addGap(57, 57, 57)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfNomeCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(tfRuaCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelCadPessoaLayout.createSequentialGroup()
                        .addComponent(jLabel18)
                        .addGap(35, 35, 35)
                        .addComponent(jLabel20))
                    .addGroup(panelCadPessoaLayout.createSequentialGroup()
                        .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfNumeroCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tfBairroCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel17))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfComplementoCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel19))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfCidadeCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tfEstadoCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21))))
                .addGap(5, 5, 5)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfTelefoneCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel23)
                    .addComponent(tfCelularCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(tfCPFCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25)
                    .addComponent(tfRGCadFunc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26)
                    .addComponent(tfNascimento1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxCategoriaCadPessoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27))
                .addGap(54, 54, 54)
                .addGroup(panelCadPessoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCadastrarCadFunc)
                    .addComponent(jButtonCancelCadFunc))
                .addContainerGap(92, Short.MAX_VALUE))
        );

        panelCadPessoa.setBounds(0, 0, 970, 560);
        jDesktopPane.add(panelCadPessoa, javax.swing.JLayeredPane.DEFAULT_LAYER);

        panelCadTipoProduto.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel1.setFont(new java.awt.Font("Tahoma", 3, 20));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Cadastrar Tipo de Produto");

        jLabel2.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("Nome");

        jLabel3.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14));
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("Tipo de Produto");

        buttomCadTipoProd.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCadTipoProd.setText("Cadastrar");
        buttomCadTipoProd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCadTipoProdActionPerformed(evt);
            }
        });

        buttomCanTipoProd.setFont(new java.awt.Font("Tahoma", 1, 12));
        buttomCanTipoProd.setText("Cancelar");
        buttomCanTipoProd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttomCanTipoProdActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelCadTipoProdutoLayout = new javax.swing.GroupLayout(panelCadTipoProduto);
        panelCadTipoProduto.setLayout(panelCadTipoProdutoLayout);
        panelCadTipoProdutoLayout.setHorizontalGroup(
            panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadTipoProdutoLayout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 942, Short.MAX_VALUE)
                .addGap(24, 24, 24))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCadTipoProdutoLayout.createSequentialGroup()
                .addContainerGap(391, Short.MAX_VALUE)
                .addComponent(buttomCanTipoProd)
                .addGap(18, 18, 18)
                .addComponent(buttomCadTipoProd)
                .addGap(383, 383, 383))
            .addGroup(panelCadTipoProdutoLayout.createSequentialGroup()
                .addGap(198, 198, 198)
                .addGroup(panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(tfNomeCadTipoProd, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tfTipoCadTipoProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(280, Short.MAX_VALUE))
        );
        panelCadTipoProdutoLayout.setVerticalGroup(
            panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCadTipoProdutoLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel1)
                .addGap(137, 137, 137)
                .addGroup(panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfNomeCadTipoProd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(tfTipoCadTipoProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(174, 174, 174)
                .addGroup(panelCadTipoProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttomCadTipoProd)
                    .addComponent(buttomCanTipoProd))
                .addContainerGap(107, Short.MAX_VALUE))
        );

        panelCadTipoProduto.setBounds(0, 0, 970, 560);
        jDesktopPane.add(panelCadTipoProduto, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout PanelPrincipalLayout = new javax.swing.GroupLayout(PanelPrincipal);
        PanelPrincipal.setLayout(PanelPrincipalLayout);
        PanelPrincipalLayout.setHorizontalGroup(
            PanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 964, Short.MAX_VALUE)
        );
        PanelPrincipalLayout.setVerticalGroup(
            PanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelPrincipalLayout.createSequentialGroup()
                .addContainerGap(46, Short.MAX_VALUE)
                .addComponent(jDesktopPane, javax.swing.GroupLayout.PREFERRED_SIZE, 565, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jMenu2.setText("Cadastros                                                   ");

        jMenuItem1.setText("Funcionário");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        jMenuItem2.setText("Tipo Produto");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem2);

        jMenuItem3.setText("Lote");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem3);

        jMenuItem4.setText("Venda");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem4);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(PanelPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(PanelPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void tfNomeCadPessoaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfNomeCadPessoaActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfNomeCadPessoaActionPerformed

	private void tfRGCadFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfRGCadFuncionarioActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfRGCadFuncionarioActionPerformed

	private void tfRuaCadFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfRuaCadFuncionarioActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfRuaCadFuncionarioActionPerformed

	private void tfBairroCadFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfBairroCadFuncionarioActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfBairroCadFuncionarioActionPerformed

	private void tfTelefonesCadFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfTelefonesCadFuncionarioActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfTelefonesCadFuncionarioActionPerformed

	private void tfNomeCadFuncionario5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfNomeCadFuncionario5ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfNomeCadFuncionario5ActionPerformed

	private void tfCidadeCadFuncionario6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfCidadeCadFuncionario6ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_tfCidadeCadFuncionario6ActionPerformed

	private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
		controlImpl.exibeTelaCadFuncionario();
	}//GEN-LAST:event_jMenuItem1ActionPerformed

	private void RBVendedorCadPessoasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RBVendedorCadPessoasActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_RBVendedorCadPessoasActionPerformed

	private void RBCadPessoasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RBCadPessoasActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_RBCadPessoasActionPerformed

	private void buttomCadTipoProdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProdActionPerformed
		controlProdutos.cadastrarTipoProduto(tfNomeCadTipoProd.getText().trim(), tfTipoCadTipoProduto.getText().trim());
	}//GEN-LAST:event_buttomCadTipoProdActionPerformed

	private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
		controlImpl.exibeTelaCadTipoProdut();
	}//GEN-LAST:event_jMenuItem2ActionPerformed

	private void jButtonCadastrarCadFuncActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCadastrarCadFuncActionPerformed
		controlPessoa.cadastrarPessoas(tfRuaCadFunc1.getText().trim(), tfRuaCadFunc1.getText().trim(),
				tfNumeroCadFunc1.getText().trim(), tfBairroCadFunc1.getText().trim(), tfComplementoCadFunc1.getText().trim(),
				tfCidadeCadFunc1.getText().trim(), tfEstadoCadFunc1.getText().trim(), tfTelefoneCadFunc1.getText().trim(),
				tfCelularCadFunc1.getText().trim(), tfCPFCadFunc1.getText().trim(), tfRGCadFunc1.getText().trim(),
				tfNascimento1.getText().trim(), (String) jComboBoxCategoriaCadPessoa.getSelectedItem());
	}//GEN-LAST:event_jButtonCadastrarCadFuncActionPerformed

	private void buttomCadTipoProd1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProd1ActionPerformed
		controlLoteImpl.cadastrarLote();
	}//GEN-LAST:event_buttomCadTipoProd1ActionPerformed

	private void buttomCanTipoProduto1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCanTipoProduto1ActionPerformed
		controlImpl.allInvisible();
	}//GEN-LAST:event_buttomCanTipoProduto1ActionPerformed

	private void buttomCadTipoProd2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProd2ActionPerformed
		controlLoteImpl.adicionarProdutoAoLote(tfNumLoteCadLote.getText().trim(), (String) jComboBoxCategCadLote.getSelectedItem(),
				(String) jComboBoxProdCadLote.getSelectedItem(), tfQntCadLote.getText().trim(), tfDataFabrCadLote.getText().trim(), tfValorCadLote.getText().trim());
	}//GEN-LAST:event_buttomCadTipoProd2ActionPerformed

	private void jButtonCancelCadFuncActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelCadFuncActionPerformed
		controlImpl.allInvisible();
	}//GEN-LAST:event_jButtonCancelCadFuncActionPerformed

	private void buttomCanTipoProdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCanTipoProdActionPerformed
		controlImpl.allInvisible();
	}//GEN-LAST:event_buttomCanTipoProdActionPerformed

	private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
		controlImpl.exibeTelaCadLote();
	}//GEN-LAST:event_jMenuItem3ActionPerformed

	private void buttomCadTipoProd3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProd3ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_buttomCadTipoProd3ActionPerformed

	private void jComboBoxCategCadLoteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxCategCadLoteItemStateChanged
		controlImpl.preencheComboProdutoAPartirCategoria(this.jComboBoxProdCadLote, (String) jComboBoxCategCadLote.getSelectedItem());
	}//GEN-LAST:event_jComboBoxCategCadLoteItemStateChanged

	private void buttomCadTipoProd4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProd4ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_buttomCadTipoProd4ActionPerformed

	private void buttomCanTipoProduto2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCanTipoProduto2ActionPerformed
		controlImpl.allInvisible();
	}//GEN-LAST:event_buttomCanTipoProduto2ActionPerformed

	private void buttomCadTipoProd5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProd5ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_buttomCadTipoProd5ActionPerformed

	private void buttomCadTipoProd6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttomCadTipoProd6ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_buttomCadTipoProd6ActionPerformed

	private void jComboBoxCategCadVendasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxCategCadVendasItemStateChanged
		controlImpl.preencheComboProdutoAPartirCategoria(jComboBoxProdCadVendas, (String) jComboBoxCategCadVendas.getSelectedItem());
                controlVendasImpl.preencheTextFildQntDisponivel((String)jComboBoxProdCadVendas.getSelectedItem());
	}//GEN-LAST:event_jComboBoxCategCadVendasItemStateChanged

        private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
            controlImpl.exibeTelaCadVendas();
        }//GEN-LAST:event_jMenuItem4ActionPerformed

        private void jComboBoxProdCadVendasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxProdCadVendasItemStateChanged
            controlVendasImpl.preencheTextFildQntDisponivel((String) jComboBoxProdCadVendas.getSelectedItem());
        }//GEN-LAST:event_jComboBoxProdCadVendasItemStateChanged

        private void comboBoxVendedorCadVendasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_comboBoxVendedorCadVendasItemStateChanged
            // TODO add your handling code here:
        }//GEN-LAST:event_comboBoxVendedorCadVendasItemStateChanged

        private void comboBoxCompradorCadVendasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_comboBoxCompradorCadVendasItemStateChanged
            // TODO add your handling code here:
        }//GEN-LAST:event_comboBoxCompradorCadVendasItemStateChanged

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel PanelPrincipal;
    private javax.swing.ButtonGroup bgCadFunc;
    private javax.swing.JButton buttomCadTipoProd;
    private javax.swing.JButton buttomCadTipoProd1;
    private javax.swing.JButton buttomCadTipoProd2;
    private javax.swing.JButton buttomCadTipoProd3;
    private javax.swing.JButton buttomCadTipoProd4;
    private javax.swing.JButton buttomCadTipoProd5;
    private javax.swing.JButton buttomCadTipoProd6;
    private javax.swing.JButton buttomCanTipoProd;
    private javax.swing.JButton buttomCanTipoProduto1;
    private javax.swing.JButton buttomCanTipoProduto2;
    private javax.swing.JComboBox comboBoxCompradorCadVendas;
    private javax.swing.JComboBox comboBoxVendedorCadVendas;
    private javax.swing.JButton jButtonCadastrarCadFunc;
    private javax.swing.JButton jButtonCancelCadFunc;
    private javax.swing.JComboBox jComboBoxCategCadLote;
    private javax.swing.JComboBox jComboBoxCategCadVendas;
    private javax.swing.JComboBox jComboBoxCategoriaCadPessoa;
    private javax.swing.JComboBox jComboBoxProdCadLote;
    private javax.swing.JComboBox jComboBoxProdCadVendas;
    private javax.swing.JDesktopPane jDesktopPane;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JList jListProdutos;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JPanel panelCadLote;
    private javax.swing.JPanel panelCadPessoa;
    private javax.swing.JPanel panelCadTipoProduto;
    private javax.swing.JPanel panelCadVenda;
    private javax.swing.JTable tableProdutosCadVendas;
    private javax.swing.JTextField textFieldQntDispCadVendas;
    private javax.swing.JTextField textfDataVendaCadVend;
    private javax.swing.JTextField textfQntParcelasCadVendas;
    private javax.swing.JTextField textfQntSolicCadVendas;
    private javax.swing.JTextField tfBairroCadFunc1;
    private javax.swing.JTextField tfCPFCadFunc1;
    private javax.swing.JTextField tfCelularCadFunc1;
    private javax.swing.JTextField tfCidadeCadFunc1;
    private javax.swing.JTextField tfComplementoCadFunc1;
    private javax.swing.JFormattedTextField tfDataFabrCadLote;
    private javax.swing.JTextField tfEstadoCadFunc1;
    private javax.swing.JTextField tfNascimento1;
    private javax.swing.JTextField tfNomeCadFunc1;
    private javax.swing.JTextField tfNomeCadTipoProd;
    private javax.swing.JTextField tfNumLoteCadLote;
    private javax.swing.JTextField tfNumeroCadFunc1;
    private javax.swing.JTextField tfQntCadLote;
    private javax.swing.JTextField tfRGCadFunc1;
    private javax.swing.JTextField tfRuaCadFunc1;
    private javax.swing.JTextField tfTelefoneCadFunc1;
    private javax.swing.JTextField tfTipoCadTipoProduto;
    private javax.swing.JTextField tfValorCadLote;
    // End of variables declaration//GEN-END:variables

	/**
	 * @return the controlImpl
	 */
	 public ControlImpl getControlImpl() {
		return controlImpl;
	}

	/**
	 * @param controlImpl the controlImpl to set
	 */
	 public void setControlImpl(ControlImpl controlImpl) {
		 this.controlImpl = controlImpl;
	 }

	 /**
	  * @return the controlPessoa
	  */
	 public ControlPessoas getControlPessoa() {
		 return controlPessoa;
	 }

	 /**
	  * @param controlPessoa the controlPessoa to set
	  */
	 public void setControlPessoa(ControlPessoas controlPessoa) {
		 this.controlPessoa = controlPessoa;
	 }

	 /**
	  * @return the panelPrincipal
	  */
	 public javax.swing.JPanel getPanelPrincipal() {
		 return PanelPrincipal;
	 }

	 /**
	  * @param panelPrincipal the panelPrincipal to set
	  */
	 public void setPanelPrincipal(javax.swing.JPanel panelPrincipal) {
		 PanelPrincipal = panelPrincipal;
	 }

	 /**
	  * @return the panelCadPessoa
	  */
	 public javax.swing.JPanel getPanelCadPessoa() {
		 return panelCadPessoa;
	 }

	 /**
	  * @param panelCadPessoa the panelCadPessoa to set
	  */
	 public void setPanelCadPessoa(javax.swing.JPanel panelCadPessoa) {
		 this.panelCadPessoa = panelCadPessoa;
	 }

	 /**
	  * @return the panelCadTipoProduto
	  */
	 public javax.swing.JPanel getPanelCadTipoProduto() {
		 return panelCadTipoProduto;
	 }

	 /**
	  * @param panelCadTipoProduto the panelCadTipoProduto to set
	  */
	 public void setPanelCadTipoProduto(javax.swing.JPanel panelCadTipoProduto) {
		 this.panelCadTipoProduto = panelCadTipoProduto;
	 }

	 /**
	  * @return the controlProdutos
	  */
	 public ControlProdutos getControlProdutos() {
		 return controlProdutos;
	 }

	 /**
	  * @param controlProdutos the controlProdutos to set
	  */
	 public void setControlProdutos(ControlProdutos controlProdutos) {
		 this.controlProdutos = controlProdutos;
	 }

	 /**
	  * @return the panelCadLote
	  */
	 public javax.swing.JPanel getPanelCadLote() {
		 return panelCadLote;
	 }

	 /**
	  * @param panelCadLote the panelCadLote to set
	  */
	 public void setPanelCadLote(javax.swing.JPanel panelCadLote) {
		 this.panelCadLote = panelCadLote;
	 }

	 /**
	  * @return the jListProdutos
	  */
	 public javax.swing.JList getjListProdutos() {
		 return jListProdutos;
	 }

	 /**
	  * @param jListProdutos the jListProdutos to set
	  */
	 public void setjListProdutos(javax.swing.JList jListProdutos) {
		 this.jListProdutos = jListProdutos;
	 }

	 /**
	  * @return the jComboBoxCategCadLote
	  */
	 public javax.swing.JComboBox getjComboBoxCategCadLote() {
		 return jComboBoxCategCadLote;
	 }

	 /**
	  * @param jComboBoxCategCadLote the jComboBoxCategCadLote to set
	  */
	 public void setjComboBoxCategCadLote(javax.swing.JComboBox jComboBoxCategCadLote) {
		 this.jComboBoxCategCadLote = jComboBoxCategCadLote;
	 }

	 /**
	  * @return the jComboBoxProdCadLote
	  */
	 public javax.swing.JComboBox getjComboBoxProdCadLote() {
		 return jComboBoxProdCadLote;
	 }

	 /**
	  * @param jComboBoxProdCadLote the jComboBoxProdCadLote to set
	  */
	 public void setjComboBoxProdCadLote(javax.swing.JComboBox jComboBoxProdCadLote) {
		 this.jComboBoxProdCadLote = jComboBoxProdCadLote;
	 }

	 /**
	  * @return the controlLoteImpl
	  */
	 public ControlLote getControlLoteImpl() {
		 return controlLoteImpl;
	 }

	 /**
	  * @param controlLoteImpl the controlLoteImpl to set
	  */
	 public void setControlLoteImpl(ControlLote controlLoteImpl) {
		 this.controlLoteImpl = controlLoteImpl;
	 }

	 /**
	  * @return the jComboBoxCategoriaCadPessoa
	  */
	 public javax.swing.JComboBox getjComboBoxCategoriaCadPessoa() {
		 return jComboBoxCategoriaCadPessoa;
	 }

	 /**
	  * @param jComboBoxCategoriaCadPessoa the jComboBoxCategoriaCadPessoa to set
	  */
	 public void setjComboBoxCategoriaCadPessoa(
			 javax.swing.JComboBox jComboBoxCategoriaCadPessoa) {
		 this.jComboBoxCategoriaCadPessoa = jComboBoxCategoriaCadPessoa;
	 }

	 /**
	  * @return the jComboBoxCategCadVendas
	  */
	 public javax.swing.JComboBox getjComboBoxCategCadVendas() {
		 return jComboBoxCategCadVendas;
	 }

	 /**
	  * @param jComboBoxCategCadVendas the jComboBoxCategCadVendas to set
	  */
	 public void setjComboBoxCategCadVendas(
			 javax.swing.JComboBox jComboBoxCategCadVendas) {
		 this.jComboBoxCategCadVendas = jComboBoxCategCadVendas;
	 }

	 /**
	  * @return the jComboBoxProdCadVendas
	  */
	 public javax.swing.JComboBox getjComboBoxProdCadVendas() {
		 return jComboBoxProdCadVendas;
	 }

	 /**
	  * @param jComboBoxProdCadVendas the jComboBoxProdCadVendas to set
	  */
	 public void setjComboBoxProdCadVendas(
			 javax.swing.JComboBox jComboBoxProdCadVendas) {
		 this.jComboBoxProdCadVendas = jComboBoxProdCadVendas;
	 }

	 /**
	  * @return the panelCadVenda
	  */
	 public javax.swing.JPanel getPanelCadVenda() {
		 return panelCadVenda;
	 }

	 /**
	  * @param panelCadVenda the panelCadVenda to set
	  */
	 public void setPanelCadVenda(javax.swing.JPanel panelCadVenda) {
		 this.panelCadVenda = panelCadVenda;
	 }

	 /**
	  * @return the tableProdutosCadVendas
	  */
	 public javax.swing.JTable getTableProdutosCadVendas() {
		 return tableProdutosCadVendas;
	 }

	 /**
	  * @param tableProdutosCadVendas the tableProdutosCadVendas to set
	  */
	 public void setTableProdutosCadVendas(javax.swing.JTable tableProdutosCadVendas) {
		 this.tableProdutosCadVendas = tableProdutosCadVendas;
	 }

	 /**
	  * @return the textFieldQntDispCadVendas
	  */
	 public javax.swing.JTextField getTextFieldQntDispCadVendas() {
		 return textFieldQntDispCadVendas;
	 }

	 /**
	  * @param textFieldQntDispCadVendas the textFieldQntDispCadVendas to set
	  */
	 public void setTextFieldQntDispCadVendas(
			 javax.swing.JTextField textFieldQntDispCadVendas) {
		 this.textFieldQntDispCadVendas = textFieldQntDispCadVendas;
	 }

	 /**
	  * @return the textfQntSolicCadVendas
	  */
	 public javax.swing.JTextField getTextfQntSolicCadVendas() {
		 return textfQntSolicCadVendas;
	 }

	 /**
	  * @param textfQntSolicCadVendas the textfQntSolicCadVendas to set
	  */
	 public void setTextfQntSolicCadVendas(
			 javax.swing.JTextField textfQntSolicCadVendas) {
		 this.textfQntSolicCadVendas = textfQntSolicCadVendas;
	 }

	/**
	 * @return the controlVendasImpl
	 */
	public ControlVendas getControlVendasImpl() {
		return controlVendasImpl;
	}

	/**
	 * @param controlVendasImpl the controlVendasImpl to set
	 */
	public void setControlVendasImpl(ControlVendas controlVendasImpl) {
		this.controlVendasImpl = controlVendasImpl;
	}

	/**
	 * @return the tfDataFabrCadLote
	 */
	public javax.swing.JFormattedTextField getTfDataFabrCadLote() {
		return tfDataFabrCadLote;
	}

	/**
	 * @param tfDataFabrCadLote the tfDataFabrCadLote to set
	 */
	public void setTfDataFabrCadLote(javax.swing.JFormattedTextField tfDataFabrCadLote) {
		this.tfDataFabrCadLote = tfDataFabrCadLote;
	}

	/**
	 * @return the tfNumLoteCadLote
	 */
	public javax.swing.JTextField getTfNumLoteCadLote() {
		return tfNumLoteCadLote;
	}

	/**
	 * @param tfNumLoteCadLote the tfNumLoteCadLote to set
	 */
	public void setTfNumLoteCadLote(javax.swing.JTextField tfNumLoteCadLote) {
		this.tfNumLoteCadLote = tfNumLoteCadLote;
	}

}
